#include "PowerExercise.h"

PowerExercise::PowerExercise(const Device& d,int n,int r) : Exercise(d)
{
reharsalsInSet = r;
numOfSets = n;
}

ostream & operator<<(ostream & os,const PowerExercise & E) //#WD[3] RonnyR 12.12
{
os<<(Exercise&)E;
os<<"Number of Sets: "<<E.numOfSets<<endl;
os<<"Reharsals in Sets: "<<E.reharsalsInSet<<endl;
return os;
}

Exercise * PowerExercise::Clone() const
{
return new PowerExercise(*this);
}

void PowerExercise::PrintExercise(ostream &os,int type)const
{
if (type==POWER_CHOOSE || type==ALL_CHOOSE)
	cout<<*this;
}

